package com.wangzhenyu.learn.test.handler

import android.app.Activity
import android.view.View
import com.blankj.utilcode.util.ActivityUtils
import com.blankj.utilcode.util.ToastUtils
import com.wangzhenyu.common.util.log.LogUtil
import com.wangzhenyu.learn.test.bean.User


@Suppress("UNUSED")
class MainClickHandler {

    @Suppress("UNCHECKED_CAST")
    fun jumpToOneHandler(itemVIew: View) {
        //反射
         ActivityUtils.startActivity(Class.forName("com.wzy.business.store.login.BusinessActivity") as Class<Activity>)
    }

    fun jumpToTwoHandler(itemVIew: View, user: User) {
        user.age += 1
        LogUtil.d("WZYTestOne", user.age.toString())
    }

}
